#pragma once
#include "ilistensocket.h"

namespace cupid
{
class ListenSocket : public IListenSocket
{
public:
	IListenSocket*	getInterface() { return (IListenSocket*)this; }
public:
	ListenSocket(void);
	~ListenSocket(void);

	virtual bool	listen(int port);

	virtual SOCKET	accept();

	virtual void	close();

	virtual SOCKET	socket();

protected:
	SOCKET		m_sock;
};
}